#ifndef TASKEDITOR_H
#define TASKEDITOR_H

#include <QWidget>

#include <QRadioButton>
#include <QPushButton>
#include <QBoxLayout>
#include <QComboBox>
#include <QLineEdit>
#include <QLabel>

#include "spredsheet.h"
#include "defs.h"

class taskEditor : public QDialog
{
    Q_OBJECT
private:
    QLabel *inputLabel;
    QLabel *outputLabel;
    QLabel *algoTypeLabel;
    QLabel *optTypeLabel;

    QLineEdit *inputEdit;
    QLineEdit *outputEdit;

    QRadioButton *manualyInputRadio;
    QRadioButton *fromFileInputRadio;

    QPushButton *inputBrowseButton;
    QPushButton *outputBrowseButton;
    QPushButton *manualInputButton;

    QPushButton *saveButton;
    QPushButton *runButton;
    QPushButton *closeButton;

    QComboBox *algoritmsBox;
    QComboBox *optimizationsBox;

    QVBoxLayout *mainLayout;
    QVBoxLayout *inputLayout;
    QVBoxLayout *outputLayout;
    QVBoxLayout *paramLayout;
    QHBoxLayout *buttonsLayout;
    QHBoxLayout *inputFileLayout;
    QHBoxLayout *outputFileLayout;

    spredsheet *sheet;

private slots:
    void editInput();
    //void itemMade( QVector<QVectro<int> > table );

public:
    taskEditor(QWidget *parent = 0);
};

#endif // TASKEDITOR_H
